package com.yfp.machine;

import com.yfp.common.security.annotation.EnableCustomConfig;
import com.yfp.common.security.annotation.EnableRyFeignClients;
import com.yfp.machine.service.MqService;
import jakarta.annotation.Resource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 设备管理模块
 * 
 *
 */
@EnableCustomConfig
@EnableRyFeignClients
@MapperScan("com.yfp.machine.mapper")
@SpringBootApplication
public class YFPMachineApplication implements CommandLineRunner
{
    @Resource
    MqService mqService;
    public static void main(String[] args)
    {
        SpringApplication.run(YFPMachineApplication.class, args);

        System.out.println("(♥◠‿◠)ﾉﾞ  设备管理模块启动成功   ლ(´ڡ`ლ)ﾞ ");
    }

    @Override
    public void run(String... args) {
        mqService.subscriptionMessage();
    }
}
